package com.ruoyi.shop.trade.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 shop_cart
 * 
 * @author ruoyi
 * @date 2024-04-15
 */
public class ShopCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long cartId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long memberId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** skuId */
    @Excel(name = "skuId")
    private Long skuId;

    /** 删除标志（0代表存在 2代表删除） */
    private Integer delFlag;

    /** 是否选中(0是1否) */
    @Excel(name = "是否选中(0是1否)")
    private Integer isChecked;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer count;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setIsChecked(Integer isChecked) 
    {
        this.isChecked = isChecked;
    }

    public Integer getIsChecked() 
    {
        return isChecked;
    }
    public void setCount(Integer count) 
    {
        this.count = count;
    }

    public Integer getCount() 
    {
        return count;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("memberId", getMemberId())
            .append("goodsId", getGoodsId())
            .append("skuId", getSkuId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isChecked", getIsChecked())
            .append("count", getCount())
            .toString();
    }
}
